Introduction to Building FUSION Nodes
In the custom FUSION Platform node, the SUT is specified via a dynamic link library (DLL). The communication with the FUSION Platform is set up via the native FUSION C/C++ API or a wrapped C#-API. See FUSION C Sharp API.
The interface for any node is defined by four functions. The four functions for the native C interface, which you can find in the file tpt_fusion_node.h
in the subdirectory public\include
of your TPT installation, are:
tpt_fusion_node_startup
tpt_fusion_node_initfcn
tpt_fusion_node_callfcn
tpt_fusion_node_shutdown
In the following sections the creation of a Custom Node DLL for the lights control example is explained. The sources for the SUT (lights_control.c and lights_control.h
) can be found in the subdirectory <tpt-install-dir>\examples\SUT-C-Code with Scaling
.